package cn.test;

import cn.thread.MyRunnale;

/**
 * runnable测试
 */
public class TheadRunnable {
    public static void main(String[] args) {
        MyRunnale runnale=new MyRunnale();
        Thread t1=new Thread(runnale);
        Thread t2=new Thread(runnale);
        t1.setName("线程1");//给线程名字
        t2.setName("线程2");
        t1.start();
        t2.start();
    }
}
